package com.example.common.core.constants;

public class CacheConstants {
    /**
     * 缓存有效期，默认720（分钟）
     */
    public final static long EXPIRATION = 720;
    /**
     * 用户身份认证缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";

    public final static Long REFRESH_TIME = 180L;

    public final static String PHONE_CODE_KEY = "p:c";

    public final static String CODE_TIME_KEY = "c:t";

    public final static String DEFAULT_CODE = "123456";

    public final static String CONTEST_UNFINISHED_LIST = "c:t:l"; // 未结束的比赛列表

    public final static String CONTEST_HISTORY_LIST = "c:h:l"; // 历史的比赛列表

    public final static String CONTEST_DETAIL = "c:d:";

    public final static String USER_CONTEST_LIST = "u:c:l";

    public static final String CONTEST_QUESTION_LIST = "c:q:l:";

    public static final String CONTEST_RANK_LIST = "c:r:l:";

    public final static String USER_DETAIL = "u:d:";   //用户详情信息

    public final static long USER_EXP = 10;

    public static final String USER_UPLOAD_TIMES_KEY = "u:u:t";

    public static final String QUESTION_LIST = "q:l";

    public static final String QUESTION_HOST_LIST = "q:h:l";

    public static final String USER_MESSAGE_LIST = "u:m:l:";

    public static final String MESSAGE_DETAIL = "m:d:";

    public static final long DEFAULT_START = 0;

    public static final long DEFAULT_END = -1;


}
